package com.atguigu.spzx.exception;

import com.atguigu.spzx.spzx.model.vo.common.ResultCodeEnum;
import lombok.Getter;

@Getter
public class spzxGuiguExceptions extends RuntimeException{
    public Integer code;
    public String message;

    public spzxGuiguExceptions(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public spzxGuiguExceptions(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
    }
}
